<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
	<script src="../jquery-3.3.1.min.js"></script>
    <script>
        $(function(){
            $("#picture").click(function(){
                $("#picture").stop().animate({"width":"100%","height":"100%"},2000,function(){
                    $("#picture").click(function(){
                        $("#picture").stop().animate({"width":"50%","height":"50%"},2000);
                    });
                });
            });

        });
    </script>
</head>
<body>
    <img src="img/small_2b.png" alt="" id="picture">
</body>
</html>